Skip to content

[16.0] [ADD] fastapi_endpoint_context#578

Merged
OCA-git-bot merged 1 commit into
OCA:16.0from
akretion:16.0-add-fastapi_endpoint_context
Feb 3, 2026
Merged

[16.0] [ADD] fastapi_endpoint_context#578
OCA-git-bot merged 1 commit into
OCA:16.0from
akretion:16.0-add-fastapi_endpoint_context

Conversation

@paradoxxxzero

Copy link
Copy Markdown
Contributor

This module provides an overridable request context for FastAPI endpoints.

It allows to customize the behavior of requests deep in the odoo call stack
according to the current request context without having to override routers
that may come from external modules.

This context contains by default the current endpoint app and id, respectively
accessible via self.env.context.get('fastapi_endpoint_app') and
self.env.context.get('fastapi_endpoint_id').

odoo_env dependency is automatically overridden to include FastAPI endpoint context values.

You can override the fastapi.endpoint->_get_app_context() method to add custom values to the context for your applications.

@sebastienbeau sebastienbeau left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (code review)

@paradoxxxzero paradoxxxzero force-pushed the 16.0-add-fastapi_endpoint_context branch from f36b661 to cbb743f Compare December 15, 2025 15:57

@Kev-Roche Kev-Roche left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functionnal review ok !

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@sebastienbeau

Copy link
Copy Markdown
Member

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 16.0-ocabot-merge-pr-578-by-sebastienbeau-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 4ff78c7 into OCA:16.0 Feb 3, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at c4504b7. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants